/**
 * 
 */
package org.cuatrovientos.bill;

/**
 * @author Axel
 *
 */
public class Product {
	private String name;
	private float price;
	private int quantity;
	
	public Product(String name, float price, int quantity) {
		this.name = name;
		this.price = price;
		this.quantity = quantity;
	}
	
	public float totalPrice(){
		return price * quantity;
	}
	
	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final float getPrice() {
		return price;
	}

	public final void setPrice(float price) {
		this.price = price;
	}

	public final int getQuantity() {
		return quantity;
	}

	public final void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public String toString() {
		return "Product [name=" + name + ", price=" + price + ", quantity="
				+ quantity + "]";
	}
	
}
